package com.onec.service.customer.dao.agent;

import com.onec.service.api.dao.BaseRepository;
import com.onec.service.api.enums.SystemTypeEnum;
import com.onec.service.customer.entity.agent.AgentLimitInfo;
import org.springframework.data.repository.RepositoryDefinition;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = AgentLimitInfo.class, idClass = Long.class)
public interface AgentLimitInfoRepository extends BaseRepository<AgentLimitInfo, Long> {


    /**
     * @param agentId
     * @param type
     * @param value
     * @return
     */
    AgentLimitInfo findAgentLimitInfoByAgentIdAndTypeAndValue(Long agentId, SystemTypeEnum type, String value);
}
